package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperCardInfo implements Serializable {
    /**
     * 充值流水号
     */
    private Long id;

    /**
     * 充值用户名
     */
    private String username;

    /**
     * 一卡通帐号
     */
    private String cardno;

    /**
     * 充值金额
     */
    private Double money;

    /**
     * 充值日期
     */
    private Date indate;

    /**
     * 一卡通流水号
     */
    private String hostflowno;

    /**
     * 一卡通错误信息
     */
    private String errorInfo;

    /**
     * 消耗绿色账户
     */
    private Double credit;

    /**
     * 绿色账户当前结余
     */
    private Double balanceMoney;

    private static final long serialVersionUID = 1L;

    /**
     * 充值流水号
     */
    public Long getId() {
        return id;
    }

    /**
     * 充值流水号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 充值用户名
     */
    public String getUsername() {
        return username;
    }

    /**
     * 充值用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 一卡通帐号
     */
    public String getCardno() {
        return cardno;
    }

    /**
     * 一卡通帐号
     */
    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    /**
     * 充值金额
     */
    public Double getMoney() {
        return money;
    }

    /**
     * 充值金额
     */
    public void setMoney(Double money) {
        this.money = money;
    }

    /**
     * 充值日期
     */
    public Date getIndate() {
        return indate;
    }

    /**
     * 充值日期
     */
    public void setIndate(Date indate) {
        this.indate = indate;
    }

    /**
     * 一卡通流水号
     */
    public String getHostflowno() {
        return hostflowno;
    }

    /**
     * 一卡通流水号
     */
    public void setHostflowno(String hostflowno) {
        this.hostflowno = hostflowno;
    }

    /**
     * 一卡通错误信息
     */
    public String getErrorInfo() {
        return errorInfo;
    }

    /**
     * 一卡通错误信息
     */
    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    /**
     * 消耗绿色账户
     */
    public Double getCredit() {
        return credit;
    }

    /**
     * 消耗绿色账户
     */
    public void setCredit(Double credit) {
        this.credit = credit;
    }

    /**
     * 绿色账户当前结余
     */
    public Double getBalanceMoney() {
        return balanceMoney;
    }

    /**
     * 绿色账户当前结余
     */
    public void setBalanceMoney(Double balanceMoney) {
        this.balanceMoney = balanceMoney;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", cardno=").append(cardno);
        sb.append(", money=").append(money);
        sb.append(", indate=").append(indate);
        sb.append(", hostflowno=").append(hostflowno);
        sb.append(", errorInfo=").append(errorInfo);
        sb.append(", credit=").append(credit);
        sb.append(", balanceMoney=").append(balanceMoney);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperCardInfo other = (SuperCardInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUsername() == null ? other.getUsername() == null : this.getUsername().equals(other.getUsername()))
            && (this.getCardno() == null ? other.getCardno() == null : this.getCardno().equals(other.getCardno()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getIndate() == null ? other.getIndate() == null : this.getIndate().equals(other.getIndate()))
            && (this.getHostflowno() == null ? other.getHostflowno() == null : this.getHostflowno().equals(other.getHostflowno()))
            && (this.getErrorInfo() == null ? other.getErrorInfo() == null : this.getErrorInfo().equals(other.getErrorInfo()))
            && (this.getCredit() == null ? other.getCredit() == null : this.getCredit().equals(other.getCredit()))
            && (this.getBalanceMoney() == null ? other.getBalanceMoney() == null : this.getBalanceMoney().equals(other.getBalanceMoney()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUsername() == null) ? 0 : getUsername().hashCode());
        result = prime * result + ((getCardno() == null) ? 0 : getCardno().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getIndate() == null) ? 0 : getIndate().hashCode());
        result = prime * result + ((getHostflowno() == null) ? 0 : getHostflowno().hashCode());
        result = prime * result + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode());
        result = prime * result + ((getCredit() == null) ? 0 : getCredit().hashCode());
        result = prime * result + ((getBalanceMoney() == null) ? 0 : getBalanceMoney().hashCode());
        return result;
    }
}